<!DOCTYPE html>
<html>
<head>
<title></title>
#parse("sys/header.html")
<style type="text/css">
a:link {color: #00FF00}		/* 未访问的链接 */
a:visited {color:  #0000FF}	/* 已访问的链接 */
a:hover {color: #FF00FF}	/* 鼠标移动到链接上 */
a:active {color: #FF0000}	/* 选定的链接 */
</style>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
	
        
		<div class="grid-btn" style="float:left;">
			#if($shiro.hasPermission("personnel:save"))
			<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			#end
			#if($shiro.hasPermission("personnel:update"))
			<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			#end
			#if($shiro.hasPermission("personnel:delete"))
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			#end
		</div>
		 <select id="liebiao" class="form-control col-sm-2" onchange="show_sub(this.options[this.options.selectedIndex].value)">
	
         
        </select>
		<input type="text" id="val" class="form-control col-sm-2" placeholder="请输入名称或标签">
        	   <input type="button" onclick="getval();" class="btn btn-default" value="查询" />
        	   <a href="../personnel/export" class="coolbg">&nbsp;导出Excel&nbsp;</a>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">名称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="personnel.name" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">身份证</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="personnel.nric" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">联系方式</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="personnel.contact" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">标签</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="personnel.codeTag" placeholder=""/>
			    </div>
			</div>
						
				<div class="form-group">
			   	<div class="col-sm-2 control-label">组别</div>
			   	<div class="col-sm-10">
			   	 <select  v-model="personnel.idGroupPersonnel"  class="form-control">
	  <option v-for="entity in groupPersonnel" v-bind:value="entity.id">{{entity.name}}</option>
        </select>
			     
			    </div>
			</div>
					<div class="form-group">
			   	<div class="col-sm-2 control-label">越界策略</div>
			   	<div class="col-sm-10">
			   	<select  v-model="personnel.idCrossborderalarm"  class="form-control">
	  <option v-for="entity in crossborderalarm" v-bind:value="entity.id">{{entity.name}}</option>
        </select>
			      <!-- <input type="text" class="form-control" v-model="personnel.idCrossborderalarm" placeholder=""/> -->
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">离岗策略</div>
			   	<div class="col-sm-10">
			   		<select  v-model="personnel.idDisappearalarm"  class="form-control">
	  <option v-for="entity in disappearalarm" v-bind:value="entity.id">{{entity.name}}</option>
        </select>
			      <!-- <input type="text" class="form-control" v-model="personnel.idDisappearalarm" placeholder=""/> -->
			    </div>
			</div>
							
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		
		</form>
	</div>
</div>
<form method="POST" enctype="multipart/form-data" id="form1" action="../personnel/upload.do">
 	 	<table>
 	 	 <tr>
 	 	 	<td>导入文件: </td>
 	 	 	<td> <input id="upfile" type="file" name="upfile"></td>
 	 	 </tr>
  		<tr>
 	 	 	<td><input type="submit" value="提交" onclick="return checkData()"></td>
 	 	 </tr>
  		</table>	
	</form>
<script src="${rc.contextPath}/js/dingwei/personnel.js?_${date.systemTime}"></script>
</body>
</html>